#include<iostream>
#include<algorithm>
#include<climits>
using namespace std;
const int N=1e5+10;
long long nums[N];

int main()
{
	long long n,k;cin>>n>>k;
	long long ret=0;
	long long right=1e8;
	for(int i=1;i<=n;i++)
	{
		cin>>nums[i];
	}
	long long left=0;
	while(left<right)
	{
		long long mid=left+(right-left+1)/2;
		long long c=0;
		for(int i=1;i<=n;i++)
		{
			c+=nums[i]/mid;
		}
		if(c>=k)
		{
			left=mid;
		}
		else
		{
			right=mid-1;
		}
	}
	cout<<left<<endl;
}